﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Contact.aspx.cs" Inherits="Contact" %>





<asp:Content runat="server" ID="cc" ContentPlaceHolderID="cntHead">
    <ctl:navmenu ID="asd" runat="server"  SelectedMenu="3" />
</asp:Content>


<asp:Content ID="Content2" ContentPlaceHolderID="cntCenter" Runat="Server">

<script type="text/javascript">

    $(document).ready(function () {

        $("#clear").click(function () {
            $("input[type='text']").val('');
            $("textarea").val('');
        });

        $("form[myid='main']").validate({
            rules: {
                <%=txtName.UniqueID %>:"required",
                <%=txtEmail.UniqueID %>:{
                    required:true,
                    email:true
                },
                <%=txtSubject.UniqueID %>:"required",
                <%=txtBody.UniqueID %>:"required"
        }
    });

        $("input[type=button],input[type=submit]").button();
});


</script>

<section class="full">
    <h2>Contact</h2>
    <span class="w2">Name:</span><asp:TextBox ID="txtName" runat="server" CssClass="w5" ></asp:TextBox><br />
    <div class="row">&nbsp;</div>
    <span class="w2">Email:</span><asp:TextBox ID="txtEmail" runat="server" CssClass="w5"  ></asp:TextBox><br />
    <div class="row">&nbsp;</div>
    <span class="w2">Subject:</span><asp:TextBox ID="txtSubject" runat="server" CssClass="w5" ></asp:TextBox><br />
    <div class="row">&nbsp;</div>
    <span class="w2">Message:</span><textarea id="txtBody" runat="server" rows="8"  CssClass="w6" cols="45"></textarea><br />

    <div class="row">&nbsp;</div>
    <asp:Button ID="btnSubmit" runat="server" Text="Send"  />
    <input type="button" value="Clear" id="clear" />

    <div class="row">&nbsp;</div>

    <div id="divMsg" runat="server" Visible="False">
        <h2 id="hMsg" runat="server">Your message has been sent</h2>
    </div>
</section>
</asp:Content>
